package main

import "fmt"

func main() {
	ci := make(chan int, 5)
	for i := 1; i <= 5; i++ {
		ci <- i
	}
	close(ci)
	for i := range ci {
		fmt.Println(i)
	}
}

// for range的遍历方式是阻塞型的遍历方式
